<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>v-bind:单向绑定,data->view</h1>
        <h3>老师:<input type="text" v-bind:value="teacher"></h3>
        <h3>课程:<input type="text" :value="course"></h3>
        <h3>老师,课程,网址:&nbsp;&nbsp;&nbsp;{{teacher}},{{course}},{{url}}</h3><hr>

        <h1>v-model:双向绑定,data<->view</h1>
        <h2>v-model默认并且仅仅能够收集的value属性值 ,v-model:value=""简写v-model=""</h2>
        <h3>老师:<input type="text" v-model:value="teacher"></h3>
        <h3>课程:<input type="text" v-model="course"></h3>
    </div>

    <script src="plugins/vue2.js"></script>
    <script>
        new Vue({
            el:'#app',
            data:{
                teacher:'success',
                course:'Vue2',
                url:'http://www.baidu.com'
            }
        });
    </script>
</body>
</html>